<script setup>
const props = defineProps(['columns', 'data'])

const emit = defineEmits([])
</script>

<template>
    <el-table>
        <el-table-column v-for="(column, index) in columns"
                         :key="index"
                         :label="column.label"
                         :prop="column.prop"
                         :width="column.width"
                         v-bind="column.bind"
        />
    </el-table>
</template>

<style scoped>

</style>